/**
 * Created by robin.tian on 17-2-13.
 */
var fs= require('fs');
var zlib = require('zlib');

//解压 input.txt.gz 文件为  input.txt
fs.createReadStream('input.txt.gz')
    .pipe(zlib.createGunzip())
    .pipe(fs.createWriteStream('input.txt'));

console.log("程序执行完毕");